package cn.aitrox.ry.service.user.dao.impl;

import cn.aitrox.ry.common.dao.impl.BaseDaoImpl;
import cn.aitrox.ry.service.user.dao.UserDao;
import cn.aitrox.ry.service.user.entity.UserEntity;
import cn.aitrox.ry.service.user.mapper.UserMapper;
import cn.aitrox.ry.service.user.po.UserCountParamPo;
import cn.aitrox.ry.service.user.po.UserFindParamPo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public class UserDaoImpl extends BaseDaoImpl<UserEntity> implements UserDao {

    @Autowired
    private UserMapper mapper;

    @Override
    public List<UserEntity> findByCustom(UserFindParamPo param) {
        return mapper.findByCustom(param);
    }

    @Override
    public Integer countByCond(UserCountParamPo userCountParamPo) {
        return mapper.countByCond(userCountParamPo);
    }
}
